home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 64 32 2e 63 78 6f |Path: nn|tpd2.cxo|
|00000010| 2e 64 65 63 2e 63 6f 6d | 21 75 73 65 6e 65 74 0a |.dec.com|!usenet.|
|00000020| 46 72 6f 6d 3a 20 42 72 | 69 61 6e 20 48 69 62 62 |From: Br|ian Hibb|
|00000030| 65 72 74 20 3c 62 5f 68 | 69 62 62 65 72 74 40 63 |ert <b_h|ibbert@c|
|00000040| 73 63 33 32 2e 65 6e 65 | 74 2e 64 65 63 2e 63 6f |sc32.ene|t.dec.co|
|00000050| 6d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |m>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 0a 53 75 62 6a 65 |omp.lang|.c.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 48 65 6c 70 2c 20 62 65 |ct: Re: |Help, be|
|00000080| 73 74 20 77 61 79 20 74 | 6f 20 63 6f 6d 70 61 72 |st way t|o compar|
|00000090| 65 20 64 6f 75 62 6c 65 | 73 0a 44 61 74 65 3a 20 |e double|s.Date: |
|000000a0| 31 38 20 4a 61 6e 20 31 | 39 39 36 20 31 37 3a 34 |18 Jan 1|996 17:4|
|000000b0| 38 3a 34 30 20 47 4d 54 | 0a 4f 72 67 61 6e 69 7a |8:40 GMT|.Organiz|
|000000c0| 61 74 69 6f 6e 3a 20 44 | 69 67 69 74 61 6c 20 45 |ation: D|igital E|
|000000d0| 71 75 69 70 6d 65 6e 74 | 20 43 6f 72 70 6f 72 61 |quipment| Corpora|
|000000e0| 74 69 6f 6e 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |tion.Mes|sage-ID:|
|000000f0| 20 3c 34 64 6d 31 35 6f | 24 61 31 40 6e 6e 74 70 | <4dm15o|$a1@nntp|
|00000100| 64 32 2e 63 78 6f 2e 64 | 65 63 2e 63 6f 6d 3e 0a |d2.cxo.d|ec.com>.|
|00000110| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 3c 34 64 61 |Referenc|es: <4da|
|00000120| 31 36 39 24 6d 6d 34 40 | 6d 65 72 63 75 72 79 2e |169$mm4@|mercury.|
|00000130| 49 6e 74 4e 65 74 2e 6e | 65 74 3e 20 3c 34 64 66 |IntNet.n|et> <4df|
|00000140| 64 74 6c 24 70 68 76 40 | 6e 6e 74 70 2e 63 72 6c |dtl$phv@|nntp.crl|
|00000150| 2e 63 6f 6d 3e 20 3c 44 | 4c 44 35 4b 70 2e 4a 4d |.com> <D|LD5Kp.JM|
|00000160| 45 40 65 73 6b 69 6d 6f | 2e 63 6f 6d 3e 0a 4e 4e |E@eskimo|.com>.NN|
|00000170| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|00000180| 20 70 65 6f 31 30 31 32 | 5f 70 6f 72 74 31 2e 70 | peo1012|_port1.p|
|00000190| 65 6f 2e 64 65 63 2e 63 | 6f 6d 0a 4d 69 6d 65 2d |eo.dec.c|om.Mime-|
|000001a0| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 43 6f 6e |Version:| 1.0.Con|
|000001b0| 74 65 6e 74 2d 54 79 70 | 65 3a 20 74 65 78 74 2f |tent-Typ|e: text/|
|000001c0| 70 6c 61 69 6e 3b 20 63 | 68 61 72 73 65 74 3d 75 |plain; c|harset=u|
|000001d0| 73 2d 61 73 63 69 69 0a | 43 6f 6e 74 65 6e 74 2d |s-ascii.|Content-|
|000001e0| 54 72 61 6e 73 66 65 72 | 2d 45 6e 63 6f 64 69 6e |Transfer|-Encodin|
|000001f0| 67 3a 20 37 62 69 74 0a | 58 2d 4d 61 69 6c 65 72 |g: 7bit.|X-Mailer|
|00000200| 3a 20 4d 6f 7a 69 6c 6c | 61 20 31 2e 32 4e 20 28 |: Mozill|a 1.2N (|
|00000210| 57 69 6e 64 6f 77 73 3b | 20 49 3b 20 31 36 62 69 |Windows;| I; 16bi|
|00000220| 74 29 0a 54 6f 3a 20 6d | 61 67 40 65 73 6b 69 6d |t).To: m|ag@eskim|
|00000230| 6f 2e 63 6f 6d 0a 0a 6d | 61 67 40 65 73 6b 69 6d |o.com..m|ag@eskim|
|00000240| 6f 2e 63 6f 6d 20 28 6d | 41 67 29 20 77 72 6f 74 |o.com (m|Ag) wrot|
|00000250| 65 3a 0a 3e 49 6e 20 61 | 72 74 69 63 6c 65 20 3c |e:.>In a|rticle <|
|00000260| 34 64 66 64 74 6c 24 70 | 68 76 40 6e 6e 74 70 2e |4dfdtl$p|hv@nntp.|
|00000270| 63 72 6c 2e 63 6f 6d 3e | 20 28 31 36 20 4a 61 6e |crl.com>| (16 Jan|
|00000280| 20 31 39 39 36 20 30 35 | 3a 34 33 3a 31 37 20 47 | 1996 05|:43:17 G|
|00000290| 4d 54 29 2c 20 0a 3e 62 | 69 76 65 79 40 65 63 66 |MT), .>b|ivey@ecf|
|000002a0| 32 2e 70 75 63 2e 65 64 | 75 20 73 61 79 73 20 3a |2.puc.ed|u says :|
|000002b0| 0a 3e 3e 0a 3e 3e 4a 65 | 66 66 20 54 6f 6d 69 63 |.>>.>>Je|ff Tomic|
|000002c0| 68 20 28 6a 74 6f 6d 69 | 63 68 40 49 6e 74 4e 65 |h (jtomi|ch@IntNe|
|000002d0| 74 2e 6e 65 74 29 20 77 | 72 6f 74 65 3a 0a 3e 3e |t.net) w|rote:.>>|
|000002e0| 3a 20 4c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 61 20 |: Lookin|g for a |
|000002f0| 77 61 79 20 74 6f 20 63 | 6f 6d 70 61 72 65 20 64 |way to c|ompare d|
|00000300| 6f 75 62 6c 65 73 20 66 | 6f 72 20 65 71 75 61 6c |oubles f|or equal|
|00000310| 69 74 79 2e 0a 3e 3e 0a | 3e 3e 3a 20 74 68 61 6e |ity..>>.|>>: than|
|00000320| 6b 73 2c 20 4a 65 66 66 | 0a 3e 3e 0a 3e 3e 54 68 |ks, Jeff|.>>.>>Th|
|00000330| 65 20 66 69 72 73 74 20 | 71 75 65 73 74 69 6f 6e |e first |question|
|00000340| 20 74 6f 20 61 73 6b 20 | 69 73 20 22 68 6f 77 20 | to ask |is "how |
|00000350| 65 71 75 61 6c 22 3f 20 | 20 49 6e 20 67 65 6e 65 |equal"? | In gene|
|00000360| 72 61 6c 2c 20 6f 6e 65 | 20 70 69 63 6b 73 20 73 |ral, one| picks s|
|00000370| 6f 6d 65 0a 3e 3e 65 72 | 72 6f 72 20 6c 69 6d 69 |ome.>>er|ror limi|
|00000380| 74 2c 20 73 75 63 68 20 | 61 73 20 20 65 20 3d 20 |t, such |as e = |
|00000390| 31 45 2d 36 3b 20 20 20 | 74 68 65 6e 20 75 73 65 |1E-6; |then use|
|000003a0| 73 20 69 74 20 69 6e 20 | 74 68 69 73 20 66 6f 72 |s it in |this for|
|000003b0| 6d 3a 0a 3e 3e 0a 3e 3e | 20 20 20 69 66 20 28 66 |m:.>>.>>| if (f|
|000003c0| 61 62 73 28 6e 31 20 2d | 20 6e 32 29 20 3c 20 65 |abs(n1 -| n2) < e|
|000003d0| 29 20 20 2f 2f 20 74 68 | 65 6e 20 74 68 65 79 20 |) // th|en they |
|000003e0| 61 72 65 20 63 6f 6e 73 | 69 64 65 72 65 64 20 65 |are cons|idered e|
|000003f0| 71 75 61 6c 0a 3e 3e 20 | 20 20 65 6c 73 65 20 20 |qual.>> | else |
|00000400| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000410| 20 20 2f 2f 20 74 68 65 | 79 20 61 72 65 20 63 6f | // the|y are co|
|00000420| 6e 73 69 64 65 72 65 64 | 20 64 69 66 66 65 72 65 |nsidered| differe|
|00000430| 6e 74 0a 3e 3e 0a 3e 0a | 3e 22 48 6f 77 20 65 71 |nt.>>.>.|>"How eq|
|00000440| 75 61 6c 22 20 69 73 20 | 69 72 72 65 6c 65 76 61 |ual" is |irreleva|
|00000450| 6e 74 2e 20 22 45 71 75 | 61 6c 20 74 6f 22 20 63 |nt. "Equ|al to" c|
|00000460| 6f 6d 70 61 72 69 73 6f | 6e 20 70 72 6f 64 75 63 |ompariso|n produc|
|00000470| 65 73 20 61 20 62 6f 6f | 6c 65 61 6e 20 72 65 73 |es a boo|lean res|
|00000480| 75 6c 74 20 0a 3e 54 72 | 75 65 20 6f 72 20 46 61 |ult .>Tr|ue or Fa|
|00000490| 6c 73 65 2e 20 0a 3e 0a | 3e 27 3d 3d 27 20 69 73 |lse. .>.|>'==' is|
|000004a0| 20 67 6f 6f 64 20 65 6e | 6f 75 67 68 0a 3e 0a 3e | good en|ough.>.>|
|000004b0| 0a 0a 57 68 65 6e 20 79 | 6f 75 20 61 72 65 20 64 |..When y|ou are d|
|000004c0| 69 73 63 75 73 73 69 6e | 67 20 66 6c 6f 61 74 69 |iscussin|g floati|
|000004d0| 6e 67 20 70 6f 69 6e 74 | 20 72 65 70 72 65 73 65 |ng point| represe|
|000004e0| 6e 74 61 74 69 6f 6e 73 | 20 6f 66 20 6e 75 6d 62 |ntations| of numb|
|000004f0| 65 72 73 2c 20 74 68 65 | 20 0a 71 75 65 73 74 69 |ers, the| .questi|
|00000500| 6f 6e 20 22 68 6f 77 20 | 65 71 75 61 6c 22 20 69 |on "how |equal" i|
|00000510| 73 20 69 6d 70 6f 72 74 | 61 6e 74 2e 20 20 4d 61 |s import|ant. Ma|
|00000520| 6e 79 20 6e 75 6d 62 65 | 72 73 20 74 68 61 74 20 |ny numbe|rs that |
|00000530| 63 61 6e 20 62 65 20 65 | 61 73 69 6c 79 20 0a 72 |can be e|asily .r|
|00000540| 65 70 72 65 73 65 6e 74 | 65 64 20 69 6e 20 64 65 |epresent|ed in de|
|00000550| 63 69 6d 61 6c 20 68 61 | 76 65 20 6e 6f 20 65 78 |cimal ha|ve no ex|
|00000560| 61 63 74 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |act repr|esentati|
|00000570| 6f 6e 20 69 6e 20 61 20 | 62 69 6e 61 72 79 20 66 |on in a |binary f|
|00000580| 6c 6f 61 74 69 6e 67 20 | 0a 70 6f 69 6e 74 20 66 |loating |.point f|
|00000590| 6f 72 6d 61 74 2e 20 20 | 42 65 63 61 75 73 65 20 |ormat. |Because |
|000005a0| 6f 66 20 74 68 69 73 20 | 61 6e 64 20 64 75 65 20 |of this |and due |
|000005b0| 74 6f 20 72 6f 75 6e 64 | 69 6e 67 20 69 73 73 75 |to round|ing issu|
|000005c0| 65 73 2c 20 63 6f 6d 70 | 61 72 69 6e 67 20 74 68 |es, comp|aring th|
|000005d0| 65 20 0a 72 65 73 75 6c | 74 73 20 6f 66 20 32 20 |e .resul|ts of 2 |
|000005e0| 65 71 75 61 74 69 6f 6e | 73 20 74 68 61 74 20 77 |equation|s that w|
|000005f0| 6f 75 6c 64 20 67 69 76 | 65 20 45 58 41 43 54 4c |ould giv|e EXACTL|
|00000600| 59 20 65 71 75 61 6c 20 | 61 6e 73 77 65 72 73 20 |Y equal |answers |
|00000610| 69 66 20 64 6f 6e 65 20 | 69 6e 20 0a 64 65 63 69 |if done |in .deci|
|00000620| 6d 61 6c 2c 20 6d 61 79 | 20 6e 6f 74 20 67 69 76 |mal, may| not giv|
|00000630| 65 20 45 58 41 43 54 4c | 59 20 65 71 75 61 6c 20 |e EXACTL|Y equal |
|00000640| 61 6e 73 77 65 72 73 20 | 69 66 20 64 6f 6e 65 20 |answers |if done |
|00000650| 75 73 69 6e 67 20 61 20 | 62 69 6e 61 72 79 20 0a |using a |binary .|
|00000660| 66 6c 6f 61 74 69 6e 67 | 20 70 6f 69 6e 74 20 66 |floating| point f|
|00000670| 6f 72 6d 61 74 2e 20 20 | 54 68 61 74 20 69 73 20 |ormat. |That is |
|00000680| 77 68 79 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 75 |why you |should u|
|00000690| 73 65 20 74 68 65 20 63 | 6f 6d 70 61 72 73 69 6f |se the c|omparsio|
|000006a0| 6e 20 6c 69 73 74 65 64 | 20 0a 61 62 6f 76 65 20 |n listed| .above |
|000006b0| 61 6e 64 20 63 68 61 6e | 67 65 20 79 6f 75 72 20 |and chan|ge your |
|000006c0| 74 68 69 6e 6b 69 6e 67 | 20 66 72 6f 6d 20 22 74 |thinking| from "t|
|000006d0| 68 65 20 6e 75 6d 62 65 | 72 73 20 61 72 65 20 45 |he numbe|rs are E|
|000006e0| 58 41 43 54 4c 59 20 65 | 71 75 61 6c 22 20 74 6f |XACTLY e|qual" to|
|000006f0| 20 0a 22 74 68 65 20 6e | 75 6d 62 65 72 73 20 61 | ."the n|umbers a|
|00000700| 72 65 20 65 71 75 61 6c | 20 77 69 74 68 69 6e 20 |re equal| within |
|00000710| 78 20 64 65 63 69 6d 61 | 6c 20 70 6c 61 63 65 73 |x decima|l places|
|00000720| 22 2e 0a 0a 0a 0a 0a 2d | 2d 20 0a 2a 2a 2a 2a 2a |"......-|- .*****|
|00000730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 42 72 69 61 6e |********|**.Brian|
|00000760| 20 48 69 62 62 65 72 74 | 20 20 62 5f 68 69 62 62 | Hibbert| b_hibb|
|00000770| 65 72 74 40 63 73 63 33 | 32 2e 65 6e 65 74 2e 64 |ert@csc3|2.enet.d|
|00000780| 65 63 2e 63 6f 6d 0a 44 | 69 67 69 74 61 6c 20 45 |ec.com.D|igital E|
|00000790| 71 75 69 70 6d 65 6e 74 | 20 43 6f 72 70 6f 72 61 |quipment| Corpora|
|000007a0| 74 69 6f 6e 0a 41 6c 6c | 20 6f 70 69 6e 69 6f 6e |tion.All| opinion|
|000007b0| 73 20 65 78 70 72 65 73 | 73 65 64 20 61 72 65 20 |s expres|sed are |
|000007c0| 6d 79 20 6f 77 6e 20 61 | 6e 64 20 73 68 6f 75 6c |my own a|nd shoul|
|000007d0| 64 0a 6e 6f 74 20 62 65 | 20 61 73 73 75 6d 65 64 |d.not be| assumed|
|000007e0| 20 74 6f 20 62 65 20 74 | 68 65 20 6f 70 69 6e 69 | to be t|he opini|
|000007f0| 6f 6e 20 6f 66 20 6d 79 | 20 65 6d 70 6c 6f 79 65 |on of my| employe|
|00000800| 72 0a 0a 0a | |r... | |
+--------+-------------------------+-------------------------+--------+--------+